package org.jeecg.desen.clear;

import org.jeecg.desen.clear.service.DesCleanDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 系统启动业务处理类
 * 主要做业务数据清理
 */
@Component
public class DesClearApplicationRunner implements ApplicationRunner {

    @Autowired
    DesCleanDataService desCleanDataService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        //数据清理
        desCleanDataService.clearDesRunData();
    }
}
